/**
 * @公司:公约树
 * @位置:苏州
 * @Classname EasingDataEnum
 * @Date 2022-05-30 下午 11:29
 * @Created by hanWanLu
 * @auther 中文:韩万路
 */


package com.animeJava.enumData;

import com.animeJava.core.EasingData;

public enum EasingDataEnum {
    EASE_IN_OUT(0.29, 0.08, 0.27, 0.97);    //缓入缓出


    private double x1;
    private double y1;
    private double x2;
    private double y2;

    EasingDataEnum(double x1, double y1, double x2, double y2) {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }

    public EasingData getData(){
        return new EasingData(this.x1,this.y1 , this.x2 , this.y2);
    }

    public double getX1() {
        return x1;
    }

    public void setX1(double x1) {
        this.x1 = x1;
    }

    public double getY1() {
        return y1;
    }

    public void setY1(double y1) {
        this.y1 = y1;
    }

    public double getX2() {
        return x2;
    }

    public void setX2(double x2) {
        this.x2 = x2;
    }

    public double getY2() {
        return y2;
    }

    public void setY2(double y2) {
        this.y2 = y2;
    }
}
